home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_playmusic.cog < prev    next >
Text File  |  1999-11-15  |  633b  |  37 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_playmusic.cog
  4. #    
  5. # Play music upon entry into a sector
  6. #
  7. # [RKD]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message    entered
  14.  
  15. sector    trigger
  16.  
  17. sound    musiccue
  18.  
  19. int        locked=0    local
  20. end
  21.  
  22. # ========================================================================================
  23.  
  24. code
  25. entered:
  26. # ---> trigger sector
  27.  
  28.     if (GetSenderRef() != trigger) return;
  29.  
  30.     if (locked)    return;
  31.     locked = 1;
  32.  
  33.     PlaySoundLocal(musiccue, 1, 0, 0, 0);
  34.     return;
  35. end
  36.  
  37.